<?php $this->load->view('includes/header'); ?>
<?php if(isset($articles) && count($articles)>0){
	foreach($articles as $article){ ?>
<div class="article">
    <h1><?php echo $article->title; ?></h1>
    <div class="articleBody">
    	<?php echo $article->body; ?>
    </div>
</div>
<?php
	}
} else { ?>
<div class="article">
    <h1>Oeps!</h1>
    <div class="articleBody">
    	Geen artikels gevonden.
    </div>
</div>
<?php } ?>
<?php $this->load->view('includes/footer'); ?>
   